<?php
class HomeController extends MController {
    public function indexAction(){
        __import('mandrill-table-css');
//        $get = $this->getRequest()->getGet();
//        if (isset($get[MRouter::MODULE_ADMIN_ROUTE_VAR]) && !empty($get[MRouter::MODULE_ADMIN_ROUTE_VAR])){
//            $request = new MRequest();
//            $request->isAdmin(true);
//            MRouter::getInstance()->routeVar = MRouter::MODULE_ADMIN_ROUTE_VAR;
//            MRouter::getInstance()->getRoute($request);
//            MRouter::getInstance()->routeVar = MRouter::DEFAULT_ROUTE_VAR;
//            MDispatcher::getInstance()->dispatch($request);
//        } else {
//            $mlOptions = MFile::getPHPFileContent(dirname(__FILE__).'/../views/home/options.php');
//            MTemplate::getInstance()->addVar('mlOptions', $mlOptions);
            $this->render();
//        }
    }

    public function logoutAction(){
        MSession::getInstance()->logout();
        __redirect(__route('ml-admin'));
    }
    
}
?>
